export type WorkItem = {
    id: string;
    type: string; // 元素类型（用于校验）
    [x: string]: any
}

export type Container = {
    id: string;
    title: string;
    accepts: string[]; // 允许的元素类型
    items: WorkItem[];
    [x: string]: any
}

export type WorkStatusType = "pending" | "inProgress" | "completed"
export const WorkStatus = {
    PENDING: 'pending',
    INPROGRESS: 'inProgress',
    COMPLETED: 'completed'
} as const

export interface WorkItemProps {
    id: string;
    title: string
    content: string
    times: string
    status: WorkStatusType,
    onEdit?: (id:string) => void
}

export interface DayWorksProps {
    data: Container
}